package com.web.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Administrator on 2017/5/5.
 */
@Slf4j
@Configuration
@ConfigurationProperties(prefix = "pay")
@Data
public class PayConfiguration {
    private Wx wx;
    private Ali ali;
    private Bank bank;

    @Data
    public static class Wx {
        private String appId;
        private String mchId;
        private String signKey;
        private String notfiyUrl;
    }

    @Data
    public static class Ali {
        private String appid;
        private String selfSecret;
        private String publicSecret;
        private String publicSecret2;
        private String url;
        private String notifyUrl;
    }

    @Data
    public static class Bank {
        private Integer userid;
        private String userkey;
        private String payUrl;
        private String notifyUrl;
        private String returnUrl;
    }


}
